﻿using JZ.JiangSu.WcfService.IWcfServices;
using System;
using System.Collections.Generic;
using System.Linq;
using JZ.JiangSu.Model.Entity;
using JZ.JiangSu.IApplication.IServices;
using DependencyAttribute = Unity.Attributes.DependencyAttribute;
using JZ.JiangSu.WcfService.DTO.Output;
using JZ.JiangSu.WcfService.WcfIocInit;

namespace JZ.JiangSu.WcfService.WcfServices
{
    [IocServiceBehavior]
    public class UserService : BaseWcfService, IWcfServices.IUserService
    {
        [Dependency]
        public ICompanyInfoService CompanyInfoService { get; set; }

        public List<CompanyVM> GetTopVipCompany(int topNumber)
        {
            //Logger.Error("game of throne(season 8)"+DateTime.Now.ToString(" HHmmss "));
            var companys=CompanyInfoService.GetTopVipCompany(topNumber).ToList();
            return AutoMapperManager.Mapper.Map<List<CompanyVM>>(companys);
        }

        public int Add(int a, int b)
        {
            return a + b;
        }
    }
}
